package com.lapelife.backend.mapper;

import cn.hutool.log.Log;
import com.lapelife.backend.model.domain.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author Mir.Lliao
* @description 针对表【sys_menu(菜单权限表)】的数据库操作Mapper
* @createDate 2023-04-24 09:00:03
* @Entity com.lapelife.backend.model.domain.SysMenu
*/
@Repository
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<String> selectPermsByUserId(@Param("id") Long id);

    Integer addMenuToRole(@Param("menuIdList") List<Long> menuIdList, @Param("roleId") Long roleId);

    Integer deleteMenuFor(@Param("roleId") Long RoleId, @Param("menuIdList") List<Long> menuIdList);
}




